home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / tripong.swf / scripts / frame_1 / PlaceObject2_14_3 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-04-23  |  474 b   |  18 lines

  1. onClipEvent(enterFrame){
  2.    scale += 10;
  3.    if(_parent.overroll)
  4.    {
  5.       gr += 0.3;
  6.       speed += 1;
  7.    }
  8.    gr = (50 + gr * 12) / 13;
  9.    speed = 10;
  10.    d._rotation += speed;
  11.    g = Math.abs(d._rotation) * Math.abs(65 - _xscale) / 250 + gr + (- _xscale + 75) / 50;
  12.    f.d._xscale = 100 / _xscale * g;
  13.    f.d._yscale = g / _yscale * 100;
  14.    f._rotation = d._rotation;
  15.    f.d._rotation = - f._rotation;
  16.    _parent.r.gotoAndStop(Math.round(speed * 10));
  17. }
  18.